<div id="divMain" style="background-color:#CCCCCC">
  <table cellpadding="0" cellspacing="0" border="0" id="dataTable">
    <thead>
      <tr>
        <th>Tên đăng nhập</th>
        <th width="100px">Tình trạng</th>
        <th width="120px">Đổi tình trạng</th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($result as $rows){ ?>
      <tr>
        <td><?=$rows->username?></td>
        <td><?=($rows->role==99)?"Bình thường":"Khóa"?></td>
        <td><a href="<?=base_url('untitled/changestatus.html?username='.$rows->username.'&status='.$rows->role)?>">Đổi</a></td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
</div>